import request from '../utils/request';


const http = {
    login:(param) => {
        return request({
            url: '/login',
            method: 'post',
            data: param
        });
    },
    user:(param) => {
        return request({
            url: '/admin/user',
            method: 'get',
            params: param
        });
    },
    withdraw:(param) => {
        return request({
            url: '/admin/withdraw',
            method: 'get',
            params: param
        });
    },
    achievement:(param) => {
        return request({
            url: '/admin/achievement',
            method: 'get',
            params: param
        });
    },
    profit:(param) => {
        return request({
            url: '/admin/profit',
            method: 'get',
            params: param
        });
    },

    miyouUser:(param) => {
        return request({
            url: '/admin/miyou_user',
            method: 'get',
            params: param
        });
    },
    doWithdraw:(param) => {
        return request({
            url: '/admin/withdraw',
            method: 'post',
            data: param
        });
    },

    userEdit:(param) => {
        return request({
            url: '/admin/user_edit',
            method: 'post',
            data: param
        });
    },
    userBind:(param) => {
        return request({
            url: '/admin/user_bind',
            method: 'post',
            data: param
        });
    },
    setSession:(param) => {
        return request({
            url: '/admin/set_session',
            method: 'post',
            data: param
        });
    },
}
export default http

